package assignment;
import java.util.Scanner; 

public class StringReverse 
{
    public static void main(String[] args)
    {
      	String name=new String("divya");
      	
      	System.out.println("The given string is " +name);
      	
      	int j=name.length()-1;
      	
    	String temp=new String("");
    	for(int i=j;i>=0;i--)
		{
    		temp=temp+name.charAt(i);
		}
System.out.println("Reverse order:"+temp);

    	
	}

}
